<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.15"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>QuantumLibrary: /bb/mbigc/mbig5696/git/quantum_external/src/interface/quantum_itask_continuation.h Source File</title>
<link href="../../tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../jquery.js"></script>
<script type="text/javascript" src="../../dynsections.js"></script>
<link href="../../navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../resize.js"></script>
<script type="text/javascript" src="../../navtreedata.js"></script>
<script type="text/javascript" src="../../navtree.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
  $(document).ready(initResizable);
/* @license-end */</script>
<link href="../../search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../search/searchdata.js"></script>
<script type="text/javascript" src="../../search/search.js"></script>
<link href="../../doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">QuantumLibrary
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.15 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "../../search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="../../menudata.js"></script>
<script type="text/javascript" src="../../menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('../../',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(document).ready(function(){initNavTree('de/db6/quantum__itask__continuation_8h_source.html','../../');});
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="headertitle">
<div class="title">quantum_itask_continuation.h</div>  </div>
</div><!--header-->
<div class="contents">
<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="comment">/*</span></div><div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;<span class="comment">** Copyright 2018 Bloomberg Finance L.P.</span></div><div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;<span class="comment">**</span></div><div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;<span class="comment">** Licensed under the Apache License, Version 2.0 (the &quot;License&quot;);</span></div><div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<span class="comment">** you may not use this file except in compliance with the License.</span></div><div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;<span class="comment">** You may obtain a copy of the License at</span></div><div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;<span class="comment">**</span></div><div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;<span class="comment">**     http://www.apache.org/licenses/LICENSE-2.0</span></div><div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;<span class="comment">**</span></div><div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;<span class="comment">** Unless required by applicable law or agreed to in writing, software</span></div><div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;<span class="comment">** distributed under the License is distributed on an &quot;AS IS&quot; BASIS,</span></div><div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;<span class="comment">** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.</span></div><div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;<span class="comment">** See the License for the specific language governing permissions and</span></div><div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;<span class="comment">** limitations under the License.</span></div><div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;<span class="comment">*/</span></div><div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;<span class="preprocessor">#ifndef BLOOMBERG_QUANTUM_ITASKCONTINUATION_H</span></div><div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;<span class="preprocessor">#define BLOOMBERG_QUANTUM_ITASKCONTINUATION_H</span></div><div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160;</div><div class="line"><a name="l00019"></a><span class="lineno">   19</span>&#160;<span class="preprocessor">#include &lt;quantum/interface/quantum_itask.h&gt;</span></div><div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;<span class="preprocessor">#include &lt;memory&gt;</span></div><div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160;</div><div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160;<span class="keyword">namespace </span><a class="code" href="../../d6/db9/namespaceBloomberg.html">Bloomberg</a> {</div><div class="line"><a name="l00023"></a><span class="lineno">   23</span>&#160;<span class="keyword">namespace </span>quantum {</div><div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160;</div><div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160;<span class="comment">//==============================================================================================</span></div><div class="line"><a name="l00026"></a><span class="lineno">   26</span>&#160;<span class="comment">//                                  interface ITaskContinuation</span></div><div class="line"><a name="l00027"></a><span class="lineno">   27</span>&#160;<span class="comment">//==============================================================================================</span></div><div class="line"><a name="l00030"></a><span class="lineno"><a class="line" href="../../d4/d03/structBloomberg_1_1quantum_1_1ITaskContinuation.html">   30</a></span>&#160;<span class="comment"></span><span class="keyword">struct </span><a class="code" href="../../d4/d03/structBloomberg_1_1quantum_1_1ITaskContinuation.html">ITaskContinuation</a> : <span class="keyword">public</span> <a class="code" href="../../df/daf/structBloomberg_1_1quantum_1_1ITask.html">ITask</a></div><div class="line"><a name="l00031"></a><span class="lineno">   31</span>&#160;{</div><div class="line"><a name="l00032"></a><span class="lineno"><a class="line" href="../../d4/d03/structBloomberg_1_1quantum_1_1ITaskContinuation.html#ad476dfb42152a7407ca71ad9a24941ac">   32</a></span>&#160;    <span class="keyword">using</span> <a class="code" href="../../df/daf/structBloomberg_1_1quantum_1_1ITask.html#a6c5b8216547b11f3f0e0e6bc7d20956d">Ptr</a> = std::shared_ptr&lt;ITaskContinuation&gt;;</div><div class="line"><a name="l00033"></a><span class="lineno"><a class="line" href="../../d4/d03/structBloomberg_1_1quantum_1_1ITaskContinuation.html#a7f8bd7cd7729c363517994627df51a09">   33</a></span>&#160;    <span class="keyword">using</span> <a class="code" href="../../df/daf/structBloomberg_1_1quantum_1_1ITask.html#aae43ecce0c2cdbdfa677d9d0846f1e48">WeakPtr</a> = std::weak_ptr&lt;ITaskContinuation&gt;;</div><div class="line"><a name="l00034"></a><span class="lineno">   34</span>&#160;    </div><div class="line"><a name="l00035"></a><span class="lineno">   35</span>&#160;    <span class="keyword">virtual</span> <a class="code" href="../../df/daf/structBloomberg_1_1quantum_1_1ITask.html#a6c5b8216547b11f3f0e0e6bc7d20956d">Ptr</a> <a class="code" href="../../d4/d03/structBloomberg_1_1quantum_1_1ITaskContinuation.html#aae548e81c39691d3eb84a22cf12501fb">getNextTask</a>() = 0;</div><div class="line"><a name="l00036"></a><span class="lineno">   36</span>&#160;    </div><div class="line"><a name="l00037"></a><span class="lineno">   37</span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="../../d4/d03/structBloomberg_1_1quantum_1_1ITaskContinuation.html#aa2307d967f9a0db9e33d8194fe71a7b4">setNextTask</a>(<a class="code" href="../../df/daf/structBloomberg_1_1quantum_1_1ITask.html#a6c5b8216547b11f3f0e0e6bc7d20956d">Ptr</a> nextTask) = 0;</div><div class="line"><a name="l00038"></a><span class="lineno">   38</span>&#160;    </div><div class="line"><a name="l00039"></a><span class="lineno">   39</span>&#160;    <span class="keyword">virtual</span> <a class="code" href="../../df/daf/structBloomberg_1_1quantum_1_1ITask.html#a6c5b8216547b11f3f0e0e6bc7d20956d">Ptr</a> <a class="code" href="../../d4/d03/structBloomberg_1_1quantum_1_1ITaskContinuation.html#a75936cf04c1aa5d136454cf1029493c2">getPrevTask</a>() = 0;</div><div class="line"><a name="l00040"></a><span class="lineno">   40</span>&#160;    </div><div class="line"><a name="l00041"></a><span class="lineno">   41</span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="../../d4/d03/structBloomberg_1_1quantum_1_1ITaskContinuation.html#af304cf9197ca54c4015dc662def1e111">setPrevTask</a>(<a class="code" href="../../df/daf/structBloomberg_1_1quantum_1_1ITask.html#a6c5b8216547b11f3f0e0e6bc7d20956d">Ptr</a> nextTask) = 0;</div><div class="line"><a name="l00042"></a><span class="lineno">   42</span>&#160;    </div><div class="line"><a name="l00043"></a><span class="lineno">   43</span>&#160;    <span class="keyword">virtual</span> <a class="code" href="../../df/daf/structBloomberg_1_1quantum_1_1ITask.html#a6c5b8216547b11f3f0e0e6bc7d20956d">Ptr</a> <a class="code" href="../../d4/d03/structBloomberg_1_1quantum_1_1ITaskContinuation.html#aeef048835ea0e41c046544ab1680e183">getFirstTask</a>() = 0;</div><div class="line"><a name="l00044"></a><span class="lineno">   44</span>&#160;    </div><div class="line"><a name="l00045"></a><span class="lineno">   45</span>&#160;    <span class="keyword">virtual</span> <a class="code" href="../../df/daf/structBloomberg_1_1quantum_1_1ITask.html#a6c5b8216547b11f3f0e0e6bc7d20956d">Ptr</a> <a class="code" href="../../d4/d03/structBloomberg_1_1quantum_1_1ITaskContinuation.html#a13a2eeb44710f492b649c0ce8091515c">getErrorHandlerOrFinalTask</a>() = 0;</div><div class="line"><a name="l00046"></a><span class="lineno">   46</span>&#160;};</div><div class="line"><a name="l00047"></a><span class="lineno">   47</span>&#160;</div><div class="line"><a name="l00048"></a><span class="lineno"><a class="line" href="../../dc/d48/namespaceBloomberg_1_1quantum.html#a0c45225a2550ccfe74897989f0d60231">   48</a></span>&#160;<span class="keyword">using</span> <a class="code" href="../../dc/d48/namespaceBloomberg_1_1quantum.html#a0c45225a2550ccfe74897989f0d60231">ITaskContinuationPtr</a> = <a class="code" href="../../d4/d03/structBloomberg_1_1quantum_1_1ITaskContinuation.html#ad476dfb42152a7407ca71ad9a24941ac">ITaskContinuation::Ptr</a>;</div><div class="line"><a name="l00049"></a><span class="lineno"><a class="line" href="../../dc/d48/namespaceBloomberg_1_1quantum.html#a640696efd612e5588690507d814af1a9">   49</a></span>&#160;<span class="keyword">using</span> <a class="code" href="../../dc/d48/namespaceBloomberg_1_1quantum.html#a640696efd612e5588690507d814af1a9">ITaskContinuationWeakPtr</a> = <a class="code" href="../../d4/d03/structBloomberg_1_1quantum_1_1ITaskContinuation.html#a7f8bd7cd7729c363517994627df51a09">ITaskContinuation::WeakPtr</a>;</div><div class="line"><a name="l00050"></a><span class="lineno">   50</span>&#160;</div><div class="line"><a name="l00051"></a><span class="lineno">   51</span>&#160;}}</div><div class="line"><a name="l00052"></a><span class="lineno">   52</span>&#160;</div><div class="line"><a name="l00053"></a><span class="lineno">   53</span>&#160;<span class="preprocessor">#endif //BLOOMBERG_QUANTUM_ITASKCONTINUATION_H</span></div><div class="ttc" id="namespaceBloomberg_html"><div class="ttname"><a href="../../d6/db9/namespaceBloomberg.html">Bloomberg</a></div><div class="ttdef"><b>Definition:</b> quantum_buffer_impl.h:22</div></div>
<div class="ttc" id="structBloomberg_1_1quantum_1_1ITaskContinuation_html_a7f8bd7cd7729c363517994627df51a09"><div class="ttname"><a href="../../d4/d03/structBloomberg_1_1quantum_1_1ITaskContinuation.html#a7f8bd7cd7729c363517994627df51a09">Bloomberg::quantum::ITaskContinuation::WeakPtr</a></div><div class="ttdeci">std::weak_ptr&lt; ITaskContinuation &gt; WeakPtr</div><div class="ttdef"><b>Definition:</b> quantum_itask_continuation.h:33</div></div>
<div class="ttc" id="structBloomberg_1_1quantum_1_1ITaskContinuation_html_a75936cf04c1aa5d136454cf1029493c2"><div class="ttname"><a href="../../d4/d03/structBloomberg_1_1quantum_1_1ITaskContinuation.html#a75936cf04c1aa5d136454cf1029493c2">Bloomberg::quantum::ITaskContinuation::getPrevTask</a></div><div class="ttdeci">virtual Ptr getPrevTask()=0</div></div>
<div class="ttc" id="structBloomberg_1_1quantum_1_1ITaskContinuation_html_ad476dfb42152a7407ca71ad9a24941ac"><div class="ttname"><a href="../../d4/d03/structBloomberg_1_1quantum_1_1ITaskContinuation.html#ad476dfb42152a7407ca71ad9a24941ac">Bloomberg::quantum::ITaskContinuation::Ptr</a></div><div class="ttdeci">std::shared_ptr&lt; ITaskContinuation &gt; Ptr</div><div class="ttdef"><b>Definition:</b> quantum_itask_continuation.h:32</div></div>
<div class="ttc" id="structBloomberg_1_1quantum_1_1ITask_html_a6c5b8216547b11f3f0e0e6bc7d20956d"><div class="ttname"><a href="../../df/daf/structBloomberg_1_1quantum_1_1ITask.html#a6c5b8216547b11f3f0e0e6bc7d20956d">Bloomberg::quantum::ITask::Ptr</a></div><div class="ttdeci">std::shared_ptr&lt; ITask &gt; Ptr</div><div class="ttdef"><b>Definition:</b> quantum_itask.h:34</div></div>
<div class="ttc" id="namespaceBloomberg_1_1quantum_html_a0c45225a2550ccfe74897989f0d60231"><div class="ttname"><a href="../../dc/d48/namespaceBloomberg_1_1quantum.html#a0c45225a2550ccfe74897989f0d60231">Bloomberg::quantum::ITaskContinuationPtr</a></div><div class="ttdeci">ITaskContinuation::Ptr ITaskContinuationPtr</div><div class="ttdef"><b>Definition:</b> quantum_itask_continuation.h:48</div></div>
<div class="ttc" id="structBloomberg_1_1quantum_1_1ITaskContinuation_html_aa2307d967f9a0db9e33d8194fe71a7b4"><div class="ttname"><a href="../../d4/d03/structBloomberg_1_1quantum_1_1ITaskContinuation.html#aa2307d967f9a0db9e33d8194fe71a7b4">Bloomberg::quantum::ITaskContinuation::setNextTask</a></div><div class="ttdeci">virtual void setNextTask(Ptr nextTask)=0</div></div>
<div class="ttc" id="structBloomberg_1_1quantum_1_1ITask_html_aae43ecce0c2cdbdfa677d9d0846f1e48"><div class="ttname"><a href="../../df/daf/structBloomberg_1_1quantum_1_1ITask.html#aae43ecce0c2cdbdfa677d9d0846f1e48">Bloomberg::quantum::ITask::WeakPtr</a></div><div class="ttdeci">std::weak_ptr&lt; ITask &gt; WeakPtr</div><div class="ttdef"><b>Definition:</b> quantum_itask.h:35</div></div>
<div class="ttc" id="structBloomberg_1_1quantum_1_1ITaskContinuation_html"><div class="ttname"><a href="../../d4/d03/structBloomberg_1_1quantum_1_1ITaskContinuation.html">Bloomberg::quantum::ITaskContinuation</a></div><div class="ttdoc">Interface to a task continuation. For internal use only.</div><div class="ttdef"><b>Definition:</b> quantum_itask_continuation.h:30</div></div>
<div class="ttc" id="structBloomberg_1_1quantum_1_1ITaskContinuation_html_a13a2eeb44710f492b649c0ce8091515c"><div class="ttname"><a href="../../d4/d03/structBloomberg_1_1quantum_1_1ITaskContinuation.html#a13a2eeb44710f492b649c0ce8091515c">Bloomberg::quantum::ITaskContinuation::getErrorHandlerOrFinalTask</a></div><div class="ttdeci">virtual Ptr getErrorHandlerOrFinalTask()=0</div></div>
<div class="ttc" id="structBloomberg_1_1quantum_1_1ITaskContinuation_html_aeef048835ea0e41c046544ab1680e183"><div class="ttname"><a href="../../d4/d03/structBloomberg_1_1quantum_1_1ITaskContinuation.html#aeef048835ea0e41c046544ab1680e183">Bloomberg::quantum::ITaskContinuation::getFirstTask</a></div><div class="ttdeci">virtual Ptr getFirstTask()=0</div></div>
<div class="ttc" id="structBloomberg_1_1quantum_1_1ITaskContinuation_html_af304cf9197ca54c4015dc662def1e111"><div class="ttname"><a href="../../d4/d03/structBloomberg_1_1quantum_1_1ITaskContinuation.html#af304cf9197ca54c4015dc662def1e111">Bloomberg::quantum::ITaskContinuation::setPrevTask</a></div><div class="ttdeci">virtual void setPrevTask(Ptr nextTask)=0</div></div>
<div class="ttc" id="structBloomberg_1_1quantum_1_1ITask_html"><div class="ttname"><a href="../../df/daf/structBloomberg_1_1quantum_1_1ITask.html">Bloomberg::quantum::ITask</a></div><div class="ttdoc">Interface to a task. For internal use only.</div><div class="ttdef"><b>Definition:</b> quantum_itask.h:32</div></div>
<div class="ttc" id="namespaceBloomberg_1_1quantum_html_a640696efd612e5588690507d814af1a9"><div class="ttname"><a href="../../dc/d48/namespaceBloomberg_1_1quantum.html#a640696efd612e5588690507d814af1a9">Bloomberg::quantum::ITaskContinuationWeakPtr</a></div><div class="ttdeci">ITaskContinuation::WeakPtr ITaskContinuationWeakPtr</div><div class="ttdef"><b>Definition:</b> quantum_itask_continuation.h:49</div></div>
<div class="ttc" id="structBloomberg_1_1quantum_1_1ITaskContinuation_html_aae548e81c39691d3eb84a22cf12501fb"><div class="ttname"><a href="../../d4/d03/structBloomberg_1_1quantum_1_1ITaskContinuation.html#aae548e81c39691d3eb84a22cf12501fb">Bloomberg::quantum::ITaskContinuation::getNextTask</a></div><div class="ttdeci">virtual Ptr getNextTask()=0</div></div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="../../dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li><li class="navelem"><a class="el" href="../../dir_650ee533936399e683a30afb9473a469.html">interface</a></li><li class="navelem"><b>quantum_itask_continuation.h</b></li>
    <li class="footer">Generated by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="../../doxygen.png" alt="doxygen"/></a> 1.8.15 </li>
  </ul>
</div>
</body>
</html>
